package com.example.diancai.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "game_record")
public class GameRecord {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "roof_no")
    private String roofNo;

    @TableField(value = "wx_user_one_id")
    private Integer wxUserOneId;

    @TableField(value = "wx_user_two_id")
    private Integer wxUserTwoId;

    /**
     * 0 平 1:1胜利 2:2胜利
     */
    @TableField(value = "win")
    private Integer win;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "one_score")
    private Integer oneScore;

    @TableField(value = "two_score")
    private Integer twoScore;

    @TableField(value = "lv")
    private String lv;

    @TableField(value = "one_square")
    private String oneSquare;

    @TableField(value = "two_square")
    private String twoSquare;

    @TableField(value = "one_office")
    private Integer oneOffice;

    @TableField(value = "two_office")
    private Integer twoOffice;
}